package eu.jpereira.trainings.designpatterns.creational.abstractfactory;

import eu.jpereira.trainings.designpatterns.creational.abstractfactory.json.JSONAbstract;
import eu.jpereira.trainings.designpatterns.creational.abstractfactory.xml.XMLAbstract;

public class AbstractFactory {

	public static AbstractFactory getFactory(String ReportType){
		if(ReportType.equals("JSON")) return new JSONAbstract();
		else if(ReportType.equals("XML")) return new XMLAbstract();
		else return null;
	}
	public ReportHeader getHeader() {
		return null;
	}
	public ReportBody getBody() {
		return null;
	}
	public ReportFooter getFooter() {
		return null;
	}
}
